package com.jlee

class SecUser {

    int id
    int userId
    String nickName
    String realName
    String account
    String pwd
    String logo
    Date birthday
    int sex
    String phone
    String email
    String organizationId
    Date lastLoginTime
    Date lastUpdateTime

    static constraints = {
        userId nullable:false
        nickName nullable:true
        realName nullable:true
        account nullable: false
        pwd nullable: false
        logo nullable: true
        birthday nullable: true
        sex nullable:true
        phone nullable: true
        email nullable: true
        organizationId nullable: true
        lastUpdateTime nullable: true
        lastLoginTime nullable: true

    }
    static mapping = {
        table "sec_user"
        version false
        id  generator:"native"//sequence params: [sequence: 'part_repair_report_id_seq1']
        userId column: "user_id"
        nickName column: "nick_name"
        realName column: "real_name"
        account column: "account"
        pwd column: "pwd"
        logo column: "logo"
        birthday column: "birthday"
        sex column: "sex"
        phone column: "phone"
        email column: "email"
        organizationId column: "organization_id"
        lastUpdateTime column: "last_update_time"
        lastLoginTime column: "last_login_time"
    }
}
